home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / bin / l4p-tmpl < prev    next >
Encoding:
Text File  |  2010-07-21  |  1.1 KB  |  44 lines

  1. #!/usr/bin/perl
  2.  
  3. eval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
  4.     if 0; # not running under some shell
  5. ###########################################
  6. # l4p-tmpl 
  7. # 2009, Mike Schilli <m@perlmeister.com>
  8. ###########################################
  9. use strict;
  10. use warnings;
  11.  
  12. print <<'EOT';
  13. log4perl.category = WARN, Logfile
  14. log4perl.appender.Logfile          = Log::Log4perl::Appender::File
  15. log4perl.appender.Logfile.filename = test.log
  16. log4perl.appender.Logfile.layout   = Log::Log4perl::Layout::PatternLayout
  17. log4perl.appender.Logfile.layout.ConversionPattern = %d %F{1} %L> %m %n
  18. EOT
  19.  
  20. __END__
  21.  
  22. =head1 NAME
  23.  
  24.     l4p-tmpl - Print out a Log4perl template configuration
  25.  
  26. =head1 SYNOPSIS
  27.  
  28.     l4p-tmpl >l4p.conf
  29.  
  30. =head1 DESCRIPTION
  31.  
  32. l4p-tmpl prints out the text of a template Log4perl configuration for
  33. starting a new Log4perl configuration file.
  34.  
  35. =head1 COPYRIGHT AND LICENSE
  36.  
  37. Copyright 2002-2009 by Mike Schilli E<lt>m@perlmeister.comE<gt> 
  38. and Kevin Goess E<lt>cpan@goess.orgE<gt>.
  39.  
  40. This library is free software; you can redistribute it and/or modify
  41. it under the same terms as Perl itself. 
  42.  
  43. =cut
  44.